package com.neo.impatient.C13_Collection.C13_10_ReducingFoldingScanning

object exampleTest {


  def main(args: Array[String]): Unit = {
    val ee =  List(1, 7, 2, 9).reduceLeft(_ - _)
    println(ee)

    println(List(1, 7, 2, 9).reduceRight(_ - _))

    println(List(1, 7, 2, 9).foldLeft(0)(_ - _))


  }

}
